/*    */ package com.zimbra.cs.service.mail;
/*    */ 
/*    */ import com.zimbra.common.service.ServiceException;
/*    */ import com.zimbra.common.soap.Element;
/*    */ import com.zimbra.common.soap.MailConstants;
/*    */ import com.zimbra.cs.mailbox.Mailbox;
/*    */ import com.zimbra.cs.mailbox.OperationContext;
/*    */ import com.zimbra.cs.service.util.ItemId;
/*    */ import com.zimbra.soap.ZimbraSoapContext;
/*    */ import java.util.Map;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class EnableSharedReminder
/*    */   extends MailDocumentHandler
/*    */ {
/* 32 */   private static final String[] TARGET_FOLDER_PATH = { "link", "id" };
/* 33 */   private static final String[] RESPONSE_ITEM_PATH = new String[0];
/*    */   
/*    */   protected String[] getProxiedIdPath(Element request)
/*    */   {
/* 37 */     return TARGET_FOLDER_PATH;
/*    */   }
/*    */   
/*    */   protected boolean checkMountpointProxy(Element request)
/*    */   {
/* 42 */     return false;
/*    */   }
/*    */   
/*    */   protected String[] getResponseItemPath()
/*    */   {
/* 47 */     return RESPONSE_ITEM_PATH;
/*    */   }
/*    */   
/*    */   public Element handle(Element request, Map<String, Object> context) throws ServiceException
/*    */   {
/* 52 */     ZimbraSoapContext zsc = getZimbraSoapContext(context);
/* 53 */     Mailbox mbox = getRequestedMailbox(zsc);
/* 54 */     OperationContext octxt = getOperationContext(zsc, context);
/*    */     
/* 56 */     Element t = request.getElement("link");
/* 57 */     ItemId iidMountpoint = new ItemId(t.getAttribute("id"), zsc);
/* 58 */     boolean showReminders = t.getAttributeBool("reminder", false);
/* 59 */     mbox.enableSharedReminder(octxt, iidMountpoint.getId(), showReminders);
/* 60 */     return zsc.createElement(MailConstants.ENABLE_SHARED_REMINDER_RESPONSE);
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/service/mail/EnableSharedReminder.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */